<?php
	$mysql = new mysqli("localhost","root","","yihe");
	if($mysql -> connect_error){
		exit ("数据库连接失败");
	}
	$user_phone = $_POST["user_phone"];
	$user_pass = $_POST["user_pass"];
	$mysql -> set_charset("utf8");
	$update_sql = "update user_info set user_pass = '{$user_pass}' where user_phone = '{$user_phone}'";
	$result = $mysql -> query($update_sql);
	if($result){
		echo "1";
	}else{
		echo "0";
	}
?>